import cplex
import random
import numpy as np

prob = cplex.Cplex()

prob.objective.set_sense(prob.objective.sense.minimize)
N = 5
M = 10
# Add continuous variables
bin_var_name = ["y" + str(i) for i in range(N)]
bin_var_type = ["B" for i in range(N)]
bin_var_obj  = [random.randint(1,10) for i in range(N)]

con_var_name = ["x" + str(i) for i in range(N)]
con_var_type = ["C" for i in range(N)]
con_var_obj  = [random.randint(1,10) for i in range(N)]

print var_name
print var_obj
print var_type

prob.variables.add(  obj = bin_var_obj,
                   types = bin_var_type, 
                   names = bin_var_name)

prob.variables.add(    obj = con_var_obj,
                     types = con_var_type,
                     names = con_var_name)

for i in range(M):
    prob.linear_constraints.add( lin_expr = bin_expr,
                                 senses   = bin_senses,
                                 rhs      = bin_rhs


# Add binary variables
#prob.variables.add(obj = 
#                   types = 


#prob.write("chance.lp")
